class CreateChannels < ActiveRecord::Migration
  def self.up
    create_table :channels do |t|
      t.integer :orders,:null =>false
      t.integer :height,:null =>false
      t.string :name,:null =>false
      t.string :desc
      t.boolean :status,:null =>false
      t.integer :width,:null =>false
      t.boolean :is_cat,:default => false
      #1普通频道 2专辑频道 3精选频道
      t.string :channel_type,:null =>false,:default =>'1'
      #频道别名
      t.string :sign, :null=>true
      t.timestamps
    end
  end

  def self.down
    drop_table :channels
  end
end
